//table头信息 不变
var pm_columnData = [
    {"Width": "33%", "ColumnName": "各项参数"},
    {"Width": "33%", "ColumnName": "参数设置"},
    {"Width": "33%", "ColumnName": "编辑"}
];

//操作按钮 不变
var pm_operateHtml = "<div class='form-inline'>" +
    " <button type='button' class='btn btn-primary innerButtons'  value='view'>submit</button>" +
    "</div>";


//用户管理分页函数
var gotoPage = function (index) {
    var url = webPath + "/crm/1";
    //TODO FORm val()
    var postData = {"pageSize": pageSize, "pageNumber": index};
    var options = {"passArguments": index}
    postAjax(url, postData, gotoPageSuccess, options);

};

var gotoPageSuccess = function (result, passArguments) {
    //TODO remove
    result = '{"totalNumber":3,"list":[]}';

    var columnList = ["customerName", "recordTime", "nextCallTime", "contectMan", "phoneNumber", "recordContent"];
    //$.post(url, postData, function (result) {
    cleanTableAndPage("parameterManageTable");
    var jsonData = $.parseJSON(result);
    //画table
    $("#parameterManageTable").MakeTable(false, pm_columnData, jsonData.list, tableClass, columnList, pm_operateHtml);
    //画分页
    $("#parameterManageTable").after(comPagination(passArguments, pageSize, jsonData.totalNumber, "gotoPage", "parameterManageP"));
    //});
}

//查询按钮行为 TODO Change
//$('#searchCRecordBtn').click(function () {
//    gotoPage(1);
//});

//获取id 方便提交 TODO Change
//var getContectRecordId = function (that) {
//    return that.closest("tr").find("td div")[1].innerHTML;
//}